# include "Task.h"

Task::Task() : _name(""), _date(""), _st_time(0), _end_time(0), _detail(""), _alertTime(0), _done(false)
{}

void Task::appendToName(string name) {
	if(_name == "")
		_name = name;
	else
		_name = _name+" "+name;
}
void Task::setDate(string date) {_date = date;}
void Task::setStartTime(int st_time) {_st_time = st_time;}
void Task::setEndTime(int end_time) {_end_time = end_time;}
void Task::appendToDetail(string detail) {
	if(_detail == "")
		_detail = detail;
	else
		_detail = _detail+" "+detail;
}
void Task::setAlertTime(int alertTime) {_alertTime = alertTime;}
void Task::setDone(bool done) {_done = done;}

string Task::getName() {return _name;}
string Task::getDate() {return _date;}
int Task::getStartTime() {return _st_time;}
int Task::getEndTime() {return _end_time;}
string Task::getDetail() {return _detail;}
int Task::getAlertTime() {return _alertTime;}
bool Task::getDone() {return _done;}